home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume91
/
aplictns
/
quiz_1_0
/
part01
/
README
< prev
next >
Wrap
Text File
|
1991-04-10
|
7KB
|
181 lines
20 March 1991
Quiz 1.0
1. INTRODUCTION
This is the first release of quiz, a simple question-answer program
similar to the unix program /usr/games/quiz. It is useful for
memorizing vocabulary or other information that can be related in
pairs, for example, country names and their capital cities.
Given an input file of questions and answers, quiz will ask the user
questions and grade the user's answers. The program can be run from
CLI or workbench. (I haven't made a nice icon for it yet.) You can
use data files from /usr/games/quiz as well. Simply type:
CLI> quiz [quizfile] [-switch] [-help] [-ignorecase]
Argument order doesn't matter and you can abbreviate the options to a
single letter (i.e. "-s"). Options:
-switch: Asks the answer and expects question.
-ignorecase: case doesn't matter
-help: displays a brief help message and exits
Quiz records and can graph previous sessions to show your progress
over time.
2. EXAMPLE SESSION
As an example, try:
1> quiz nihongo1
Quiz will open up a new screen. Since we have specified a question
file, quiz begins by quizzing us right away. Type your answer to the
question in the text gadget. Quiz will ask all of the questions from
the data file in a random order until you get them all right. If you
miss any particular question more than four times (#define'd as
MAXWRONG in "qstructs.h") quiz will assume you are hopeless on that
question and not ask it again. You now know enough to use the basic
features of quiz. Read on only if you want details.
After you have answered all the questions, a list of the questions you
missed and your score will be printed on the CLI from which you
started quiz.
3. COMMANDS
To load a new file, type the file name in the same text gadget that is
used for answers. Then select "Load" from the main menu or use
"Right-Amiga L". The session will begin immediately. After a session
is complete, you can rerun it by selecting "Begin" from the main menu
or by using the keyboard equivalent (Right-Amiga b). "Quit" from the
main menu will end the quiz session.
4. HISTORY GRAPHING
After the first time you answer a question file, subsequent sessions
will show the history of your progress in one of two ways. The
default graph is a bar graph that shows how often you answered each
question incorrectly. I.e., the higher the bar, the more times you
have missed that question. Clicking on a question's bar will make
quiz switch to that question immediately. The previously displayed
question will be asked again later. Switch to the questions graph by
selecting "Graph ?'s" from the Options menu (or use Right-Amiga ?).
Questions not yet answered are shown in flesh-color. Questions
answered correcty the first time are shown in sky blue. Those that
have been missed at least once are shown in a kind of reddish-brown.
The other graph shows your total score across many sessions for a
particular data file. Select this graph from the Options menu "Graph
Trials" selection (or use Right-Amiga t). Clicking on a bar in this
mode has no meaning.
Quiz saves history information for question file "quizdata" in
"quizdata.sc". In order to save history information, there must be
room on the quiz data volume and it must be writable.
5. OTHER OPTIONS
Other options are available from the Options menu as follows:
5.1 Switch (Right-Amiga s)
Simply switches the question and answer. Thus you will be given
the answer and have to provide the question. (No fair using
this to cheat.)
5.2 Ignore Case (Right-Amiga i)
If Ignore Case is selected, case does not matter. I.e., "CaT"
would match "cat". Default is that case DOES matter.
5.3 Abort (Right-Amiga a)
Selecting abort causes the current trial to end. A history
entry will not be written.
6. THE QUESTION FILE
A quiz data file contains lines of the form:
question:answer
In the simplest case, this could be something like:
Largest state in the US:Alaska
You can specify more than one match by using '|'. For example:
First President of the US:George Washington|George|Washington
Thus any of "George", "Washington" or "George Washington" would be a
correct response to this question. In addition, '{' and '}' can be
used to save typing and disk space. Brackets can be nested to any
depth. Trailing and leading white space is deleted in an entry and in
the user's answer.
Quiz {Author|Programmer}:{Curtis|C{.} {R}} Eubanks
This question patterns matches: (only one will be displayed as the
question)
Quiz Author
Quiz Programmer
and the answer pattern:
Curtis Eubanks
C Eubanks
C. Eubanks
C R Eubanks
C. R Eubanks
Note that {.} matches both the empty string and '.'.
Several example files are included. When you finish a quiz session, a
score file is written: "quizfile.sc" and appended to each additional
time the program is run with quizfile. Each line of this file contains
a list of the missed questions.
7. THE THUMB
The thumb doesn't mean anything yet, but if you click on it, it changes
state. Use it to boost your morale or something.
8. THE CODE
This was written on a plain Amiga 1000 over a year ago. I compiled it
with Lattice 3.10. To compile, execute the following lattice commands:
1> lc -ac screen
1> lc quiz parse mymalloc graph
1> blink with quiz-with
This program is public domain. I wouldn't mind getting a $10 or $15
donation if you find it useful, but I don't require it. If I ever
make an significant update, anyone who sends me $15 or more will
receive the new version. This program can be freely distributed as
long as all of the files in this directory are included. If you make
any changes to the code, please let me know before redistributing.
I hope you enjoy "quiz" and that you find it useful---it has been for
me.
There are undoubtedly bugs in the code. If you find any, please let
me know. (If possible, provide a fix.) I have not tested this code on
anything other than an Amiga 1000. Also drop me a note if you find
errors in this documentation, or if you feel any part is unclear/not
detailed enough/too detailed.
Any questions or comments are always welcome. Mail to any of the
following will get to me (if you are sending money in US dollars, it
is better to send it to the US address):
creubank@is.crl.sony.co.jp creubank@media-lab.media.mit.edu
Curtis Eubanks Curtis Eubanks
Mezon Marukyo Rm 201 c/o Vernon Eubanks
5-38-10 Minami-magome 6984 Y Lightning Ranch Rd.
Oota-ku, Tokyo 143 JAPAN Hereford, AZ 85616 USA